var WxParse = require('../../wxParse/wxParse.js');

var app = getApp()
Page({
  data: {
    title:'',
    rules:''
  },
  onLoad: function (e) {
    var that = this;  
    app.setNavtitle('游戏规则');
    wx.getStorage({
      key: 'questionRule',
      success: function(res) {
        var article = res.data;
        WxParse.wxParse('article', 'html', article, that, 5);
        that.setData({
          rules: article
        })
      },
      fail:function(){
        that.setData({
          rules: ''
        })
      }
    })
  },
})